package cho114366.basic;

public class j02_20_04 {

	public static void main(String[] args) {
		int n =1; int k =2; int r =3;
		if(r<n+k)r = 2*n;else k = 2*r;
		System.out.println(k);

	}
}
